package cn.stylefeng.guns.modular.hx.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderOutDetailed;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderOutDetailedParam;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderOutParam;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderOutDetailedResult;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 出库订单明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-08-30
 */
public interface HxOrderOutDetailedService extends IService<HxOrderOutDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void add(HxOrderOutDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void delete(HxOrderOutDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    void update(HxOrderOutDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    HxOrderOutDetailedResult findBySpec(HxOrderOutDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
    List<HxOrderOutDetailedResult> findListBySpec(HxOrderOutDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-30
     */
     LayuiPageInfo findPageBySpec(HxOrderOutDetailedParam param,String condition);

	boolean saveBatchList(List<HxOrderOutDetailedParam> list);

	List<HxOrderOutDetailedResult> findSumByOrders(HxOrderOutParam hxOrderOutParam);

	HxStorageStockResult findStockSumBySpec(HxStorageStockParam stockParam);

    List<HxStorageStockResult> findStockSumList(HxStorageStockParam stockParam);

	HxStorageStockResult findStockBySpec(HxStorageStockParam stockParam);

    List<HxStorageStockResult> findStockListBySpec(HxStorageStockParam stockParam);

	void deleteBySpec(HxOrderOutDetailedParam detailedParam);

	void deletebyorders(List<String> deletedlist);

	List<HxOrderOutDetailedResult> finddtjListBySpec(HxOrderOutDetailedParam detailedParam);

}
